﻿@model SpotModel
@using Nop.Web.Models.WindAlert;
@{
    Random random = new Random();
}
<h4 style="margin-top:0px;">@T("Windalert.Spot.Cameras")</h4>
@foreach(var item in Model.AvailableCameras)
{
    <h5>@item.Name</h5>
    <div class="camera-item">
            <a href="@((String.IsNullOrEmpty(item.SponserCameraLink))? Url.RouteUrl("Camera",  new { SeName = item.SeName }):item.SponserCameraLink)"
               target="@((String.IsNullOrEmpty(item.SponserCameraLink)) ? "_self" : "_blank")">
                <img src="@(item.CameraLink + "0.jpg?" + random.Next(1000, 9000).ToString())" class="spot-cameras">
            </a> 
    </div>
       
}
